<?php

namespace app\validate;

use think\Validate;

class SalesValidate extends Validate
{
    protected $rule = [
        'staff_id|Staff ID'       =>  'require|max:50',
        'name|Name'       =>  'require|max:100',
        'hk_mobile|Mobile (MAC)'       =>  'require|max:30',
        'mac_mobile|Mobile(HK)'       =>  'require|max:30',
        'email|Email'       =>  'require|max:255',
        'property|Property'       =>  'require|max:20',
        'team|Team'       =>  'require|max:50',
        'squads|Squads'       =>  'require|max:20',
        'staff_property|Staff property'       =>  'require|max:50',
        'department|Department'       =>  'require|max:50',

    ];

    protected $scene = [
        'add' => ['staff_id', 'name', 'hk_mobile', 'mac_mobile', 'email', 'property', 'team', 'squads', 'staff_property', 'department'],

    ];

}